<?php
namespace Admin\Controller;
use Think\Controller;
class CommonController extends Controller {


  public function __construct()
  {
      parent::__construct();
      $this->checkLogin();
  }

    public function checkLogin(){
        // echo 'admin';
        if(!session('uid')){
            $this->redirect('user/login');
        }

    }
}